<template>
  <div class="head-wrap">
    <div class="swiper-container">
      <el-carousel height="300px"
                   arrow="never" indicator-position="none" :interval="5000"
                   :pause-on-hover="false"
      >
        <el-carousel-item>
          <img src="https://hetao-shop-test.s3.amazonaws.com/banner1/2023-09-27/17ff3e6c-596a-4284-b78a-b0bd6c4cd7ed.png" alt="">
        </el-carousel-item>
<!--        <el-carousel-item>-->
<!--          <img src="https://hetao-shop-test.s3.amazonaws.com/banner1/2023-09-28/3d119fca-76e2-4e6e-a3eb-6c15234aa789.png" alt="">-->
<!--        </el-carousel-item>-->
<!--        <el-carousel-item>-->
<!--          <img src="https://hetao-shop-test.s3.amazonaws.com/banner1/2023-09-28/3289b9b6-fe1d-47e6-ba1e-5b218a35f355.png" alt="">-->
<!--        </el-carousel-item>-->
<!--        <el-carousel-item>-->
<!--          <img src="https://hetao-shop-test.s3.amazonaws.com/banner1/2023-09-27/17ff3e6c-596a-4284-b78a-b0bd6c4cd7ed.png" alt="">-->
<!--        </el-carousel-item>-->
<!--        <el-carousel-item>-->
<!--          <img src="https://hetao-shop-test.s3.amazonaws.com/avatar/2023-05-27/bb83d710-d830-40db-a3ea-ad1c84d707d4.png" alt="">-->
<!--        </el-carousel-item>-->
      </el-carousel>
    </div>
    <div class="box">
      <div class="container-left">
        <img :src="baseInfo.avatar"
          alt="Argos official flagship store">
        <div class="desc"><p>{{baseInfo.title}}</p><span>  </span>
          <div class="img-list"><!----><!----><!----><!----><!----></div>
        </div>
      </div>
      <button type="button" class="el-button btn el-button--default"><!----><!----><span><i
          class="el-icon-star-off"></i> 关注 </span></button>
    </div>
  </div>
</template>
<script setup>
import {ElCarousel, ElCarouselItem} from "element-plus";
const props = defineProps({
  baseInfo: {
    type: Object,
    default: () => {
      return {}
    }
  }
})
</script>
<style scoped lang="scss">
.head-wrap {
  width: 100%;
  height: 300px;
  background-size: cover;
  background-position: 50% center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  transition: all 1s ease 0s;
  .swiper-container img{
    object-fit: cover;
    width: 100% !important;
    height: 100% !important;
  }
}
.head-wrap .box {
  max-width: 1010px;
  height: 135px;
  inset: 0px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: absolute;
  z-index: 11;
}

.head-wrap .box .bg {
  z-index: -1;
  width: 1010px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.head-wrap .box .desc {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.head-wrap .box .container-left {
  display: flex;
  justify-content: flex-start;
  padding-left: 86px;
}

.head-wrap .box .container-left img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 20px;
}

.head-wrap .box .container-left p {
  font-family: Roboto;
  font-style: normal;
  font-weight: 600;
  font-size: 18px;
  line-height: 19px;
  margin-bottom: 0px;
  color: rgb(245, 245, 247);
  -webkit-text-stroke: 0px rgb(51, 51, 51);
  filter: drop-shadow(rgba(51, 51, 51, 0.4) 2px 3px 0px);
}

.head-wrap .box .container-left span {
  font-family: "PingFang HK";
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  width: 600px;
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgb(224, 224, 224);
  margin-top: 5px;
}

.head-wrap .box .container-left .img-list img {
  width: 26px;
  height: 26px;
  margin-right: 10px;
}

.head-wrap .box .btn {
  color: rgb(245, 245, 247);
  background: var(--color-main);
  border-radius: 25px;
  width: 95px;
  height: 24px;
  line-height: 24px;
  border: none;
  margin-right: 34px;
  display: flex;
  justify-content: center;
  align-items: center;
  will-change: filter;
  transition: filter 0.8s ease 0s;
}

.head-wrap .box .btn:hover {
  filter: drop-shadow(0 0 4px var(--color-main));
}

.head-wrap .box .btn i {
  color: rgb(255, 255, 255);
  font-size: 14px;
}
</style>